package com.mf.morefun.util;

import com.mf.morefun.MoreFunApplication;

public class IsLoginBean {
    //isResult为true代表只要判断到result  false判断到orgin
    public static boolean isNo(boolean isResult){
        boolean isSure = false;
        if (null != MoreFunApplication.loginBean){
            if (null != MoreFunApplication.loginBean.getResult()){
                if (isResult){
                    isSure = true;
                }else {
                    if (null != MoreFunApplication.loginBean.getResult().getOrgan()){
                        isSure = true;
                    }else {
                        isSure = false;
                    }
                }
            }else {
                isSure = false;
            }
        }else {
            isSure = false;
        }
        return isSure;
    }
}
